package com.md.api.dao;

import com.md.api.entity.CouponInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface CouponInfoMapper {

    int insert(CouponInfo record);

    CouponInfo selectByPrimaryKey(Integer id);
    CouponInfo getByCouponId(@Param("couponId")String couponId);

    List<CouponInfo> selectAll(@Param("status")Integer status);

    int updateByPrimaryKey(CouponInfo record);

    int delete(@Param("couponId")String couponId);

    List<CouponInfo> getByCouponType(@Param("couponType")Integer couponType);

    List<CouponInfo> redeemCoupon();
}